package com.wmjsoft.view.user

import com.wmjsoft.plugins.nutzplugin.dao.MyDao
import org.nutz.trans.Atom
import org.nutz.trans.Trans
import java.util.*

/**
 * 如果我没有写注释，请提醒我
 * @program: Maternal
 * @description:
 * @author: Mr.Lee
 * @create: 2021-02-19 14:31
 */


val test = fun (ss: String) {
    println("我在test里")
    Trans.exec(Atom {
        val user = User()
        user.name = "ttt"
        user.age = 119
        user.sex = 1
        MyDao.inserter(User::class.java).insert(user)

        user.name = "ddd"
        user.age = 12
        user.sex = 1

        MyDao.inserter(User::class.java).insert(user)
    })


}
